-
Notifications
You must be signed in to change notification settings - Fork 619
[TOOL-4648] Dashboard: Fix timestamp in sponsored transactions table #7236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TOOL-4648] Dashboard: Fix timestamp in sponsored transactions table #7236
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
WalkthroughThe rendering logic for the sponsored transactions table was updated to explicitly ensure transaction timestamps are treated as UTC by appending a "Z" if missing. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SponsoredTransactionsTableUI
participant ProjectCell
participant ChainCell
participant WalletAddress
User->>SponsoredTransactionsTableUI: Render table
SponsoredTransactionsTableUI->>SponsoredTransactionsTableUI: Check transaction.timestamp for 'Z'
SponsoredTransactionsTableUI->>SponsoredTransactionsTableUI: Append 'Z' if missing (utcTimestamp)
SponsoredTransactionsTableUI->>ProjectCell: Render with client prop
SponsoredTransactionsTableUI->>ChainCell: Render with client prop
SponsoredTransactionsTableUI->>WalletAddress: Render with client prop
SponsoredTransactionsTableUI->>SponsoredTransactionsTableUI: Format and display utcTimestamp
Assessment against linked issues
Suggested labels
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7236 +/- ##
=======================================
Coverage 55.62% 55.62%
=======================================
Files 908 908
Lines 58575 58575
Branches 4132 4132
=======================================
Hits 32582 32582
Misses 25886 25886
Partials 107 107
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…7236) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the rendering logic of the `SponsoredTransactionsTableUI` component to improve clarity and functionality, particularly around handling timestamps and the rendering of table rows. ### Detailed summary - Changed the way `transaction.timestamp` is handled to ensure it always ends with "Z". - Simplified the mapping of `props.sponsoredTransactions` to use a block body for clarity. - Added `client` prop to `ProjectCell`. - Enhanced readability of the table structure by removing unnecessary code. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved accuracy of transaction timestamps by ensuring all are treated as UTC. - Enhanced consistency in date and time display for sponsored transactions. - **New Features** - Added support for passing client information to project, chain, and wallet address displays in the transactions table. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
7eea2ae to
f44d6ba
Compare

PR-Codex overview
This PR focuses on refactoring the rendering logic in the
SponsoredTransactionsTableUIcomponent to improve readability and maintainability. It also modifies how timestamps are handled and ensures proper formatting.Detailed summary
props.sponsoredTransactionsto use a function with a return statement for better clarity.utcTimestampto standardize timestamp formatting.TransactionHashCell,ProjectCell,ChainCell, andWalletAddress.utcTimestamp.Summary by CodeRabbit
Bug Fixes
New Features